<% form_for @product, :url => { :action => :update , :id => @product.id} do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :names %><br />
    <%= f.text_field :names %>
  </p>
  <p>
    <%= f.submit 'Update' %>
  </p>
<% end %>

<% content_for :head do %>	
	<title>Edit singleton</title>
<% end %>
<% content_for :header do %>	
	<h1>Editing product</h1>
<% end %>
<% content_for :footer do %>
	<%= link_to "home", :controller => "products", :action => "index" %>
<% end %>

